package com.meituan.sdk.model.ddzh.common.transferOpCustomerIdToBid;

import com.meituan.sdk.annotations.ApiMeta;
import com.google.gson.reflect.TypeToken;
import javax.validation.constraints.NotBlank;
import java.lang.reflect.Type;
import com.meituan.sdk.internal.utils.JsonUtil;
import com.google.gson.annotations.SerializedName;
import com.meituan.sdk.MeituanResponse;
import com.meituan.sdk.MeituanRequest;

/**
* 合作中心加密客户id转换为原北极星加密客户id
* This file was automatically generated.
*/
@ApiMeta(
    path = "/ddzh/common/transfer/opCustomerIdToBid",
    businessId = 58,
    apiVersion = "10000",
    apiName = "transfer_op_customer_id_to_bid",
    needAuth = false
)
public class TransferOpCustomerIdToBidRequest implements MeituanRequest<TransferOpCustomerIdToBidResponse> {
    /**
    * <p data-diff-id="ct-diff-id-d725e1e2-36fc-4f1d-a85d-08bcbccd7776">合作中心加密客户id</p>
    */
    @NotBlank(message = "opCustomerId不能为空")
    @SerializedName("opCustomerId")
    private String opCustomerId;

    public String getOpCustomerId() {
        return opCustomerId;
    }
    public void setOpCustomerId(String opCustomerId) {
        this.opCustomerId = opCustomerId;
    }


    @Override
    public MeituanResponse<TransferOpCustomerIdToBidResponse> deserializeResponse(String response) {
        Type type = new TypeToken<MeituanResponse<TransferOpCustomerIdToBidResponse>>(){}.getType();
        return JsonUtil.fromJson(response, type);
    }
    @Override
    public String serializeToJson() {
        return JsonUtil.toJson(this);
    }


    @Override
    public String toString() {
        return "TransferOpCustomerIdToBidRequest{" + "opCustomerId=" + opCustomerId + "}";
    }
}
